#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#返回函数  闭包

def lazy_sum(*args):
    def sum():
        ax = 0
        for n in args:
            ax = ax + n
        return ax
    return sum

f = lazy_sum(1, 2, 3)
f()